﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;

namespace J.Model
{
    /// <summary>
    /// 价格库存管理
    /// </summary>
    [Table("PriceInventoryControl")]
    public class PriceInventoryControl
    {
        /// <summary>
        /// 价格库存管理ID
        /// </summary>
        [Key]
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public int PriceInventoryID { get; set; }
        /// <summary>
        /// 发布预约表的外键
        /// </summary>
        public int ReservationID { get; set; }
        /// <summary>
        /// 价格日期
        /// </summary>
        public DateTime PriceDate { get; set; }
        /// <summary>
        /// 销售价
        /// </summary>
        [SugarColumn(ColumnDataType = "number(34,2)")]
        public decimal SellingPrice { get; set; }
        /// <summary>
        /// 可预约数量
        /// </summary>
        public int AvailableQuantity { get; set; }
        /// <summary>
        /// 重复
        /// </summary>
        public int repeatS { get; set; }
    }
}
